package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 子类别对象 sys_subcategory
 * 
 * @author toufu
 * @date 2021-03-28
 */
public class SysSubcategory extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 子类别id */
    private Long subcategoryId;

    /** 父类别id */
    @Excel(name = "父类别id")
    private Long parentCategoryId;

    /** 子类别名称 */
    @Excel(name = "子类别名称")
    private String subcategoryName;

    public void setSubcategoryId(Long subcategoryId) 
    {
        this.subcategoryId = subcategoryId;
    }

    public Long getSubcategoryId() 
    {
        return subcategoryId;
    }
    public void setParentCategoryId(Long parentCategoryId) 
    {
        this.parentCategoryId = parentCategoryId;
    }

    public Long getParentCategoryId() 
    {
        return parentCategoryId;
    }
    public void setSubcategoryName(String subcategoryName) 
    {
        this.subcategoryName = subcategoryName;
    }

    public String getSubcategoryName() 
    {
        return subcategoryName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("subcategoryId", getSubcategoryId())
            .append("parentCategoryId", getParentCategoryId())
            .append("subcategoryName", getSubcategoryName())
            .toString();
    }
}
